<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        /*       学生的成绩需要prompt输入，筛选60以上
         */
        // 学生成绩数组
        let arr = [];
        // 筛选60以上的
        let arr1 = [];
        let score;
        while (score != "exit") {
            score = prompt("请输入你的成绩(输入exit退出!)");
            if (score == "exit") {
                break;
            }
            arr.unshift(score);
        }

        for (let i = 0; i < arr.length; i++) {
            if (parseInt(arr[i]) > 60) {
                arr1[arr1.length] = parseInt(arr[i]);
            }
        }
        console.log(arr);
        console.log(arr1);
    </script>
</body>

</html>